package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_order_detail;

import cn.com.api.mapper.ApiT_order_detailMapper;

import cn.com.api.service.ApiT_order_detailService;

/**
 * 
 **/
@Service
public class T_order_detailServiceImplBase {
	@Autowired
	private ApiT_order_detailMapper apiT_order_detailMapper;
    
    // 根据id获取
	public ApiT_order_detail findT_order_detailById(Integer id){
		ApiT_order_detail t_order_detail = apiT_order_detailMapper.findT_order_detailById( id );
		return t_order_detail;
	}
    
    //查看数据集
	public List<ApiT_order_detail> findT_order_details(){
        List<ApiT_order_detail> t_order_details = apiT_order_detailMapper.findT_order_details();
		return t_order_details;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findT_order_detailsByMap(HashMap condition){
        List<Map<String, Object>> t_order_details = apiT_order_detailMapper.findT_order_detailsByMap(condition);
		return t_order_details;
    }
    
	// 添加
	public int insertT_order_detail(ApiT_order_detail t_order_detail){
		int ret_I= apiT_order_detailMapper.insertT_order_detail(t_order_detail);
		return ret_I;
	}

	// 修改
	public int updateT_order_detail(ApiT_order_detail t_order_detail){
		int ret_I= apiT_order_detailMapper.updateT_order_detail(t_order_detail);
		return ret_I;
	}
	
    // 删除
	public int deleteT_order_detail(Integer id){
		int ret_I= apiT_order_detailMapper.deleteT_order_detail( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


